{extend name="layout/main" /}

{block name="header"}

{/block}

{block name="content"}
<section class="panel">
    <header class="panel-heading">
        <h4>客服信息列表</h4>
    </header>
    <div class="panel-body" style="padding-bottom: 50px">
        <form class="form-horizontal" action="{:url('article/index')}">
        </form>
        <table class="table table-bordered table-striped no-margin">
            <thead>
            <tr>
                <th class="text-center">ID</th>
                <th class="text-center">客服名称</th>
                <th class="text-center">图片</th>
                <th class="text-center">创建时间</th>
                <th class="text-center">操作</th>
            </tr>
            </thead>
            <tbody>
            {if !empty($list)}
            {foreach $list as $entity}
            <tr>
                <td class="text-center">{$entity.id}</td>
                <td class="text-center">{$entity.name}</td>
                <td class="text-center"><img src="__PUBLIC__{$entity.wx}" width="200px" height="200px"></td>
                <td class="text-center">{$entity.create_time}</td>
                <td class="text-center">
                    <a href="{:url('article/serviceedit',['id'=>$entity['id']])}" class="btn btn-xs btn-info">编辑</a>
                </td>
            </tr>
            {/foreach}
            {else /}
            <tr class="text-center">
                <td colspan="6">暂无数据</td>
            </tr>
            {/if}
            </tbody>
        </table>

    </div>
</section>
{/block}


{block name="footer"}

{/block}
